package pixelwaks.core.impl;

import java.awt.Point;
import java.awt.image.BufferedImage;
import java.io.IOException;

import common.util.FileHandler;

import pixelwaks.core.ISprite;

public class Target implements ISprite {

	private BufferedImage img;
	private Point position;

	public Target(int x, int y) {
		try {
			img = FileHandler.getImage("", "tavla.png");
		} catch (IOException e) {
			e.printStackTrace();
		}
			position = new Point(x, y);
	}
	
	@Override
	public BufferedImage getImage() {
		return img;
	}

	@Override
	public Point getPosition() {
		return position;
	}

}
